package com.usian.api.wemedia;

import com.usian.model.admin.dtos.NewsAuthDto;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmNewsDto;
import com.usian.model.media.dtos.WmNewsPageReqDto;
import com.usian.model.media.pojos.WmNews;
import com.usian.model.media.pojos.WmNewsVo;
import com.usian.model.media.pojos.WmUser;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface WmNewsApi {
    ResponseResult findPage(WmNewsPageReqDto dto);

    ResponseResult submitNews(WmNewsDto dto);

    ResponseResult findByNewId(Integer id);

    ResponseResult delByNewId(Integer id);

    ResponseResult downOrUp(WmNewsDto dto);

    WmNews findByNewsId(Integer id);

    ResponseResult updateByStatus(WmNews wmNews);

    WmUser findByUserId(Integer userId);

    WmUser findByWmUserId(Integer userId);

    List<Integer> findNews();

    ResponseResult findList(NewsAuthDto dto);

    WmNewsVo findWmNewsVo(Integer id);

}
